package com.bigben.service.impl;

import com.bigben.entites.CommDictionaryDetail;
import com.bigben.mapper.CommDictionaryDetailMapper;
import com.bigben.mapper.CommDictionaryMapper;
import com.bigben.service.DictDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @Author: zhaoben 
* @Date: 2016/12/18 16:32
* @Desc: CommDictionaryDetail相关操作实现
*/
@Service
public class DictDeatilServiceImpl implements DictDetailService{

    @Autowired
    private CommDictionaryDetailMapper commDictionaryDetailMapper;

    @Override
    public List<CommDictionaryDetail> getDictByParentCode(String parentCode) {
        return commDictionaryDetailMapper.getDictByParentCode(parentCode);
    }

    @Override
    public List<CommDictionaryDetail> getAll() {
        return commDictionaryDetailMapper.getAll();
    }
}
